<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<table>
	<tr>
		<th class="first">Titel</th>
		<th class="date">Van</th>
		<th class="date">Tot</th>
		<th class="date">Aangemaakt</th>
	</tr>
	<c:forEach var="enquete" items="${enquetes}" varStatus="status">
		<tr class="${status.index % 2 == 0 ? 'even' : 'oneven'}">
			<td class="first"><a href="<c:url value="${request.contextPath}/admin/enquete?id=${enquete.id}" />">${enquete.title}</a></td>
			<td><a href="<c:url value="${request.contextPath}/admin/enquete?id=${enquete.id}" />"><fmt:formatDate type="both" dateStyle="short" timeStyle="short" value="${enquete.startdate}" /></a></td>
			<td><a href="<c:url value="${request.contextPath}/admin/enquete?id=${enquete.id}" />"><fmt:formatDate type="both" dateStyle="short" timeStyle="short" value="${enquete.enddate}" /></a></td>
			<td><a href="<c:url value="${request.contextPath}/admin/enquete?id=${enquete.id}" />"><fmt:formatDate type="both" dateStyle="short" timeStyle="short" value="${enquete.creationdate}" /></a></td>
		</tr>
	</c:forEach>
</table>